<template>
  <div>
    首頁
    <a-button type="primary" @click="showModal">Primary Button</a-button>
    {{ $t("messages.logout") }}
  </div>
</template>
<script>
  import { defineComponent, ref } from "vue"
  export default defineComponent({
    setup() {
      const visible = ref(false)

      const showModal = () => {
        visible.value = true
      }

      const submitData = () => {}
      const handleCancel = () => {}

      return {
        visible,
        showModal,
        handleCancel,
        submitData,
      }
    },
  })
</script>
